var item = argument0;
var initialized = false;
if(is_real(item))
{
    initialized = item != 0;
}
if(is_string(item))
{
    initialized = item != "";
} 
if(is_ptr(item))
{
    initialized = item != 0 && item != noone;
}

return initialized;